package com.yanqu.road.entity.union.honors;

import com.yanqu.road.entity.enums.eActivityType;

public enum eHonorsActivityType {

    UNION_HONORS_HANG_HAI(1, 43, 1),
    UNION_HONORS_STRONG_HOLD(2, 27, 1),
    UNION_HONORS_UNION_PHASE_WAR(3, 34, 1),
    UNION_HONORS_SEA_CRAFT(4, 71, 1),
    UNION_HONORS_TONG_BING(5, eActivityType.TongBingActivity.getValue(), 1),
    UNION_HONORS_RANK_UNION_WAR(6, 87, 1),
    UNION_HONORS_FIVE_HERO(7, eActivityType.FiveHero.getValue(), 1),
    UNION_HONORS_BIAOJU(8, eActivityType.BiaoJu.getValue(), 1),
    UNION_HONORS_SUI_TANG(9, eActivityType.SuiTang.getValue(), 1),
    UNION_HONORS_HORSE_RUN(13,eActivityType.HorseRun.getValue(), 1),
    UNION_HONORS_CHUHAN(14,eActivityType.ChuHanZB.getValue(), 1),
    ;

    int honorsType;

    int activityType;

    int activityChildType;

    eHonorsActivityType(int honorsType, int activityType, int activityChildType) {
        this.honorsType = honorsType;
        this.activityType = activityType;
        this.activityChildType = activityChildType;
    }

    public static eHonorsActivityType getHonorsType(int activityType, int activityChildType){
        for (eHonorsActivityType value : eHonorsActivityType.values()) {
            if(value.activityType == activityType && value.activityChildType == activityChildType){
                return value;
            }
        }
        return null;
    }

    public static eHonorsActivityType getHonorsType(int honorsType){
        for (eHonorsActivityType value : eHonorsActivityType.values()) {
            if(value.honorsType == honorsType){
                return value;
            }
        }
        return null;
    }

    public int getHonorsType() {
        return honorsType;
    }

    public void setHonorsType(int honorsType) {
        this.honorsType = honorsType;
    }

    public int getActivityType() {
        return activityType;
    }

    public void setActivityType(int activityType) {
        this.activityType = activityType;
    }

    public int getActivityChildType() {
        return activityChildType;
    }

    public void setActivityChildType(int activityChildType) {
        this.activityChildType = activityChildType;
    }
}
